/**
 * Created by zwwill on 2017/8/29.
 */
import Router from 'vue-router'

import index from './index.vue'
import register from './register.vue'
import forgetpwd from './forgetpwd.vue'
import tongxunlu from './tongxunlu.vue'

import my from './my.vue'
import chat from './chat.vue'
import tongxun from './tongxun.vue'
import friendnews from  './friendtongzhi'
import frienddeatil from  './friendDeatil'

import hongbao from './hongBao.vue'
import chongzhi  from './chongzhi.vue'
import duihuan from  './duihuan.vue'

import jilu  from './hbTab.vue'
import getbabi from './getBabi.vue'
import costbabi from  './costBabi.vue'
import radio from  './radio.vue'
import shezhi from  './shezhi.vue'

Vue.use(Router)


export default new Router({
    // mode: 'abstract',
    routes: [
        //注册登录类页面
        { path: '/login', component: index },
        { path: '/register', component: register },
        { path: '/forgetpwd', component: forgetpwd },
        //登陆后跳转的主页面
        { path: '/tongxunlu', component: tongxunlu },
        //通讯录好友类页面
        { path: '/my', component:my },
        { path: '/chat', component:chat },
        { path: '/tongxun', component:tongxun },
        { path: '/friendnews', component:friendnews },
        { path: '/frienddeatil', component:frienddeatil },
        // 红包充值兑换记录类页面
        { path: 'hongbao', component:hongbao },
        { path: '/chongzhi', component:chongzhi },
        { path: '/duihuan', component:duihuan },
        { path: '/jilu', component:jilu },
        { path: '/getbabi', component:getbabi },
        { path: '/costbabi', component: costbabi },
        { path: '/radio', component:radio},
        //   群聊好友聊类和设置类页面
        { path: '/shezhi', component:shezhi },
    ]
})